<template>
  <div class="MythesisState">

    <div class="flex">
      <el-input
        placeholder="请输入内容"
        prefix-icon="el-icon-search"
        v-model="input2">
      </el-input>
      <div class="centor mt-5" style="border-style: dashed" @click="subthesis">
        <div class="avatar">
          <span class="el-icon-plus avatar-uploader-icon"></span>
          <p>提交论文</p>
        </div>
      </div>

      <!--          论文-->
      <div class="centor mt-5" style="position:relative;" @click="link_lookthesis(1)">
        <img
          src="../assets/photo.jpg"
          alt="" width="250px" height="250px">
        <div
          style="position:absolute; bottom: 0;background: #ffffff;height: 54px;width: 100%;text-align: left;font-size: 14px;">
          <span class="mt-3 ml-2">成都工业职业技术学院</span>
          <span style="float: right">龙天才</span>
        </div>
        <div style="position:absolute;top:0;left: 0;padding: 0">
          <img :src="thesismenu[name].image" alt="" width="120px" height="120px">
          <!-- <span class="iconfont icon-shenhetongguo1 red" style="font-size: 50px"></span> -->
        </div>
      </div>


    </div>

  </div>
</template>

<script>


  export default {
    name: "MythesisState",
    props: ['name'],
    data() {
      return {
        input2: "",
        index: name,
        thesismenu: [
          {
            title: "审核通过",
            name: "pass",
            image: "https://songtell-1251684550.cos.ap-chengdu.myqcloud.com/%E6%88%90%E6%9E%9C%E7%AE%A1%E7%90%86/%E5%AE%A1%E6%A0%B8%E9%80%9A%E8%BF%87.png"
          },
          {
            title: "审核中",
            name: "in_review",
            image: "https://songtell-1251684550.cos.ap-chengdu.myqcloud.com/%E6%88%90%E6%9E%9C%E7%AE%A1%E7%90%86/%E5%AE%A1%E6%A0%B8%E9%80%9A%E8%BF%87.png"
          },
          {
            title: "待审核",
            name: "audit",
            image: "https://songtell-1251684550.cos.ap-chengdu.myqcloud.com/%E6%88%90%E6%9E%9C%E7%AE%A1%E7%90%86/%E9%80%80%E5%9B%9E.png"
          },
          {
            title: "退回",
            name: "go_back",
            image: "https://songtell-1251684550.cos.ap-chengdu.myqcloud.com/%E6%88%90%E6%9E%9C%E7%AE%A1%E7%90%86/%E9%80%80%E5%9B%9E.png"
          },
        ],
      }
    },
    methods: {
      subthesis: function () {
        this.$router.push("/student/index/addthesis");
      },
      link_lookthesis(id) {
        this.$router.push({
          path: '/student/index/lookthesis',
          query: {
            id: id
          }
        })
      }
    }
  }
</script>

<style scoped>
  .centor:hover {
    border-color: #409EFF;
  }

  .centor {
    border: 2px solid #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    width: 250px;
    height: 250px;
    display: flex;
    margin-right: 20px;
    overflow: hidden;
    text-align: center;
  }
  .avatar {
    width: 250px;
    height: 300px;
    display: block;
    text-align: center;
  }
  .avatar-uploader-icon {
    font-size: 28px;
    color: #8c939d;
    width: 28px;
    height: 28px;
    line-height: 250px;
    text-align: center;
  }
</style>
